# kubeedge edgecore

export server="192.168.10.200" # 修改为 LoadBalancer 获取的ip 应为对外可见的ip
export port="10000"
export version=$(curl -sL https://api.github.com/repos/kubeedge/kubeedge/tags | jq -r ".[0].name")
echo ${version}

keadm init --advertise-address=${server} \
  --kubeedge-version=${version} \
  --kube-config=/root/.kube/config \
  --force --external-helm-root=/root/go/src/github.com/edgemesh/build/helm \
  --profile=edgemesh

# 污点 不调度其他应用

#keadm gettoken

# kubeege node
export token=""

keadm jonin --token=${token} \
  --cloudcore-ipport=${server}:${port} \
  --kubeedge-version=${version}

# /etc/kubeedge/config
# yaml 设置选择节点 kubeege node
